package com.dhsc.local.dao.impl.ywzj.kbpzgl.wdpzsq;


import com.dhsc.domain.ywzx.kbpzgl.WdlysqlrVo;
import com.dhsc.local.dao.ywzj.kbpzgl.wdpzsq.IWdlysqlrDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("wdlysqlrDao")
public class WdlysqlrDaoImpl implements IWdlysqlrDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;
    @Override
    public List<WdlysqlrVo> queryWdlysqlr(WdlysqlrVo w) {
        return localSqlSessionTemplate.selectList("WdlysqlrMapper.queryWdlysqlr",w);
    }

    @Override
    public WdlysqlrVo queryPzgllxrxx(WdlysqlrVo w) {
        return localSqlSessionTemplate.selectOne("WdlysqlrMapper.queryPzgllxrxx",w);
    }

    @Override
    public WdlysqlrVo queryWdlysqlrSqbh() {
        return localSqlSessionTemplate.selectOne("WdlysqlrMapper.queryWdlysqlrSqbh");
    }

    @Override
    public int saveWdlysqlrxx(WdlysqlrVo w) {
        return localSqlSessionTemplate.insert("WdlysqlrMapper.saveWdlysqlrxx",w);
    }

    @Override
    public int saveWdlysqlrSqmxsj(WdlysqlrVo w) {
        return localSqlSessionTemplate.insert("WdlysqlrMapper.saveWdlysqlrSqmxsj",w);
    }

    @Override
    public List<WdlysqlrVo> queryWdlysqlrBjxx(WdlysqlrVo w) {
        return localSqlSessionTemplate.selectList("WdlysqlrMapper.queryWdlysqlrBjxx",w);
    }

    @Override
    public List<WdlysqlrVo> queryPzlxTxtdm(WdlysqlrVo w) {
        return localSqlSessionTemplate.selectList("WdlysqlrMapper.queryPzlxTxtdm",w);
    }

    @Override
    public int updateSqsl(WdlysqlrVo w) {
        return localSqlSessionTemplate.update("WdlysqlrMapper.updateSqsl",w);
    }

    @Override
    public int saveWdlysqlrLcxx(WdlysqlrVo w) {
        return localSqlSessionTemplate.insert("WdlysqlrMapper.saveWdlysqlrLcxx",w);
    }

    @Override
    public int deleteWdlysqlr(WdlysqlrVo w) {
        return localSqlSessionTemplate.delete("WdlysqlrMapper.deleteWdlysqlr",w);
    }

    @Override
    public int chsqdWdlysqlr(WdlysqlrVo w) {
        return localSqlSessionTemplate.update("WdlysqlrMapper.chsqdWdlysqlr",w);
    }

    @Override
    public int deleteWdlysqlrMX(WdlysqlrVo w) {
        return localSqlSessionTemplate.delete("WdlysqlrMapper.deleteWdlysqlrMX",w);
    }

    @Override
    public List<WdlysqlrVo> queryWdlyglinfo(WdlysqlrVo w) {

        return localSqlSessionTemplate.selectList("WdlysqlrMapper.queryWdlyglinfo",w);
    }

    @Override
    public List<WdlysqlrVo> queryJlzt(WdlysqlrVo w) {
        return localSqlSessionTemplate.selectList("WdlysqlrMapper.queryJlzt",w);
    }

    @Override
    public int updateRksj(WdlysqlrVo w) {
        return localSqlSessionTemplate.update("WdlysqlrMapper.updateRksj",w);
    }

    @Override
    public int updateBz(WdlysqlrVo w) {
        return localSqlSessionTemplate.update("WdlysqlrMapper.updateBz",w);
    }

    @Override
    public int querySfrk(WdlysqlrVo w) {
        return localSqlSessionTemplate.selectOne("WdlysqlrMapper.querySfrk",w);
    }

    @Override
    public int saveSqdrk(WdlysqlrVo w) {
        return localSqlSessionTemplate.update("WdlysqlrMapper.saveSqdrk",w);
    }

    @Override
    public int updateSqdzt(WdlysqlrVo w) {
        return localSqlSessionTemplate.update("WdlysqlrMapper.updateSqdzt",w);
    }

    @Override
    public List<WdlysqlrVo> queryExportWdlygl(WdlysqlrVo w) {
        return localSqlSessionTemplate.selectList("WdlysqlrMapper.queryExportWdlygl",w);
    }

    @Override
    public List<WdlysqlrVo> queryExportWdlyglFb(WdlysqlrVo w) {
        return localSqlSessionTemplate.selectList("WdlysqlrMapper.queryExportWdlyglFb",w);
    }

    @Override
    public int updateZbJLzt(WdlysqlrVo w) {
        return localSqlSessionTemplate.update("WdlysqlrMapper.updateZbJLzt",w);
    }

    @Override
    public int updateFbJLzt(WdlysqlrVo w) {
        return localSqlSessionTemplate.update("WdlysqlrMapper.updateFbJLzt",w);
    }
}
